package com.un.ebs.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/3/24 10:01
 */
@Getter
public enum QueryTypeEnum implements IEnum {

    Default(0, "默认"),
    LikeQuery(1, "模糊查询"),
    QuickQuery(2, "快速查询"),
    AdvancedQuery(3, "高级查询");

    QueryTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
